#pragma once
#include "cocos2d.h"
#include "HelpLayer.h"
#include "NameLayer.h"

using namespace cocos2d;
class StartLayer : public Layer
{
public:
	StartLayer();
	~StartLayer();
	virtual bool init();
	virtual void onEnter();
	//virtual void onExit();
	static Scene* createScene();
	
	CREATE_FUNC(StartLayer);

private:
	Sprite* turtles[10];

	HelpLayer* _helpLayer = nullptr;
	NameLayer* _nameLayer = nullptr;

	MenuItemImage* startItem;
	MenuItemImage* helpItem;
	MenuItemImage* exitItem;
	MenuItemImage* comGameItem;
	MenuItemImage* netGameItem;
	MenuItemImage* _3PlayerItem;
	MenuItemImage* _4PlayerItem;
	MenuItemImage* _5PlayerItem;
	MenuItemImage* backItem;

	void startCallback();
	void helpCallback();
	void exitCallback();
	void comGameCallback();
	void netGameCallback();
	void playGameCallback(int playerCount);
	void backCallback();
	void showNameLayer();
};

